from rest_framework.generics import ListAPIView
from utils.viewset import CustomModelViewSet
from system.project.models import Project
from system.project.serializers import ProjectSerializer, ProjectChannelSerializer


class ProjectViewSet(CustomModelViewSet):
    queryset = Project.objects.all()
    serializer_class = ProjectSerializer


class ProjectChannelViewSet(ListAPIView):
    queryset = Project.objects.all()
    serializer_class = ProjectChannelSerializer
